{
 "metadata": {
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.5"
  },
  "orig_nbformat": 2,
  "kernelspec": {
   "name": "python385jvsc74a57bd04bafc819f41194c3f8e6c5537594e08706f8d90f3febac7a07706479750d49b6",
   "display_name": "Python 3.8.5 64-bit ('base': conda)"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2,
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np \n",
    "import pandas as pd "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "output_type": "execute_result",
     "data": {
      "text/plain": [
       "  partname  gmv  nmv\n",
       "0   part_0   11   10\n",
       "1   part_1   19   19\n",
       "2   part_2   25   25\n",
       "3   part_3   23   23\n",
       "4   part_4   29   29\n",
       "5   part_5   20   19\n",
       "6   part_6   20   18\n",
       "7   part_7   16   15\n",
       "8   part_8   12   10\n",
       "9   part_9   24   23"
      ],
      "text/html": "<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n\n    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n\n    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n<table border=\"1\" class=\"dataframe\">\n  <thead>\n    <tr style=\"text-align: right;\">\n      <th></th>\n      <th>partname</th>\n      <th>gmv</th>\n      <th>nmv</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>0</th>\n      <td>part_0</td>\n      <td>11</td>\n      <td>10</td>\n    </tr>\n    <tr>\n      <th>1</th>\n      <td>part_1</td>\n      <td>19</td>\n      <td>19</td>\n    </tr>\n    <tr>\n      <th>2</th>\n      <td>part_2</td>\n      <td>25</td>\n      <td>25</td>\n    </tr>\n    <tr>\n      <th>3</th>\n      <td>part_3</td>\n      <td>23</td>\n      <td>23</td>\n    </tr>\n    <tr>\n      <th>4</th>\n      <td>part_4</td>\n      <td>29</td>\n      <td>29</td>\n    </tr>\n    <tr>\n      <th>5</th>\n      <td>part_5</td>\n      <td>20</td>\n      <td>19</td>\n    </tr>\n    <tr>\n      <th>6</th>\n      <td>part_6</td>\n      <td>20</td>\n      <td>18</td>\n    </tr>\n    <tr>\n      <th>7</th>\n      <td>part_7</td>\n      <td>16</td>\n      <td>15</td>\n    </tr>\n    <tr>\n      <th>8</th>\n      <td>part_8</td>\n      <td>12</td>\n      <td>10</td>\n    </tr>\n    <tr>\n      <th>9</th>\n      <td>part_9</td>\n      <td>24</td>\n      <td>23</td>\n    </tr>\n  </tbody>\n</table>\n</div>"
     },
     "metadata": {},
     "execution_count": 7
    }
   ],
   "source": [
    "num_part = 10\n",
    "simple_data = pd.DataFrame({'partname':[f\"part_{i}\" for i in range(num_part)],\n",
    "'gmv':np.random.randint(low=10, high=30, size=num_part)})\n",
    "\n",
    "simple_data['nmv'] = simple_data['gmv'] - np.random.randint(low=0, high=3, size = num_part)\n",
    "simple_data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ]
}